/**
 * Created by Administrator on 2016-12-02.
 */


var async = require("async");
var dbUtil = require('./server/util/DbUtil');

dbUtil.doSelect("select * from tab",{},function(result){
    console.log(result);
});
async.waterfall([
        function(callback){
            callback(null,'one','two');
        },
        function(arg1,arg2,callback){
            console.log('function(2):arg1='+arg1+', arg2='+arg2);
            callback(null,'three');
        },
        function(arg1,callback){
            console.log('function(3):arg1='+arg1);
            callback(null,'done');
        }
    ],function(err,result){
        if(err){
            console.log(err.message);
        }
        else{
            console.log('result='+result);
        }
});